/**
 * @author yaoyuan
 * @version 1.0
 * @name zjzcVotingApp.Service: voteService
 * @description voteService
 */


'use strict';

angular.module('zjzcVotingApp')
    .constant('voteServiceConfig', {
        // vote 列表信息
        voteList: '/admin/vote/activity/list',
        // vote 添加信息
        voteAdd: {
            url: '/admin/vote/activity/add',
            method: 'POST'
        },
        // vote 获取信息
        voteView: '/admin/vote/activity/toUpdatePage',
        // vote 更新信息
        voteUpdate: {
            url:'/admin/vote/activity/update',
            method: 'POST'
        },
        // vote 获取模板列表
        voteTempList: '/admin/template/list',
        // vote 添加模板
        voteTempAdd: {
            url: '/admin/template/add',
            method: 'POST'
        },
        // 查询规则列表
        voteRuleList: '/admin/vote/activity/getRuleList',
        // 修改参赛者票数
        modifyVote: '/admin/vote/activity/modifyVote',
        // 删除参赛者
        delModifyVote: '/admin/vote/activity/deleteEnroll',
        // 动态获取投票管理表头
        listDetailHead: '/admin/vote/activity/listDetailHead',
        // 投票管理列表
        voteLogList: '/admin/vote/activity/listDetail',
        // 禁用活动
        voteDisable: '/admin/vote/activity/disable',
        // 删除活动
        voteDelete: '/admin/vote/activity/delete',
        // 获取位置列表
        positionlist: '/admin/vote/activity/positionlist',
        // 获取公众号列表
        getpublicacctlist: '/activity/getpublicacctlist',
        // 查询规则列表
        getRuleList: '/admin/vote/activity/getRuleList'
    })

    .factory('voteService', ['uiService','voteServiceConfig', function (uiService, voteServiceConfig) {
        return uiService.ajaxModule(voteServiceConfig);
    }]);
